module.exports = function(app) {
  var express = require('express');
  var loginStateRouter = express.Router();

  loginStateRouter.get('/state', function(req, res) {
    // console.log(req);
    if (req.query.login && req.query.login === "true") {
      res.send(lstate.logined);
    } else {
      res.send(lstate.notLogined);
    }
  });

	loginStateRouter.get('/taskitems/callbackreport', function(req, res) {
		res.send({
      "success" : false,
      "message" : "unVerifiedUrl"
    });
	});
  app.use('/action', loginStateRouter);
};
